body {
    width: 960px;
    margin: 0 auto;
    background-color: rgb(222,222,222);
}

/*
 * 页头
 */
header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 52px;
    padding-top: 10px;
    background-color: rgb(52,52,52);
    z-index: 10;
}

header nav {
    /* fault --- static */
    position: absolute;
    right: 0;
    top: 0;
}

header nav ul li {
    float: left;
    padding-right: 30px;
}

/*
 * 内容主体分块
 */
#main-part, aside, footer {
    position: relative;
    top: 62px;
}

#part-1 article, #part-2, #part-3, aside {
    border: solid black 1px;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
}

article {
    /* 实现文本左右对齐 */
    text-align: justify;
}

#part-1 article li {
    list-style: none;
}

#part-2 img {
    width: 120px;
    height: 90px;
}

#part-3 table {
    position: relative;
    width: 100%;
    text-align: center;
}

#part-3 table thead {
    background-color: rgb(51,51,51);
}

#part-3 .foot-table {
    background-color: rgb(201,201,201);
}


/*
 * 侧栏
 */
aside {
    margin-top: 40px;
}

aside #e-mail label, aside #password label,
aside #gender span, aside #city label,
aside #hobby label, aside #description label {
    float: left;
    width: 33%;
    text-align: right;
    padding-right: 10px;
}
aside #e-mail-statement, aside #password-statement {
    position: relative;
    left: 34%;
    font-size: 90%;
    color: #cccccc;
    margin-top: -10px;
    margin-bottom: -10px;
}

aside #description textarea {
    width: 60%;
    height: 75px;
}

aside #submit-button {
    margin: 0 5%;
    width: 90%;
    height: 30px;
    text-align: center;
    background-color: blue;
}

/*
 * 页脚
 */
footer {
    box-sizing: border-box;
    width: 100%;
    background-color: black;
}

footer p {
    text-align: center;
    line-height: 60px;
    color: white;
}

